package com.lzw.breadknife.sample.adapter;

import android.view.View;

import com.lzw.breadknife.BindLayout;
import com.lzw.breadknife.BreadKnife;
import com.lzw.breadknife.sample.R;
import com.lzw.breadknife.sample.bean.Music;

/**
 * author  : AWeiLoveAndroid
 * e-mail  : lzw460433675@163.com
 * github  : https://gitee.com/AWeiLoveAndroid/BreadKnife
 * project : BreadKnife
 */
@BindLayout(value=R.layout.item_music, rootPackage = "com.lzw.breadknife.sample")
public class MusicViewHolder extends BaseViewHolder<Music> {

    private MusicViewHolderUnbinder bind;

    public MusicViewHolder(View itemView) {
        super(itemView);
        bind = (MusicViewHolderUnbinder) BreadKnife.bind(this, itemView);
    }

    @Override
    protected void bindData(Music obj) {
        bind.setMusic(obj);
    }
}
